<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
    <?php Yii::app()->clientScript->registerCoreScript('jquery');?>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->getBaseUrl(true).'/js/script.js');?>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="wrapper">

	<div id="header">
        <div id="logo">
            <?=CHtml::image(Yii::app()->getBaseUrl(true).'/images/logo_loop_sRGB.gif', '', array('style'=>'margin: 14px 0;'))?>
        </div>
	</div><!-- header -->

	<?php echo $content; ?>

    <div id="footer">
        <?php
        $categories = Categories::getAllCategories();
        foreach($categories as $num=>$cat){
            echo CHtml::link($cat, Yii::app()->createUrl('site/category',array('cat'=>$cat)), array('class'=>'menu_link'));
        }
        ?>
    </div><!-- footer -->

</div><!-- wrapper -->

<div id="left_buttons_block">
    <div id="lb_close_button"></div>
    <div id="lb_contacts_button"></div>
    <div id="lb_about_button"></div>
</div>

<div id="contacts_block"></div>
<div id="about_block"></div>

</body>
</html>
